x-editable: Cannot read property 'defaults' of undefined - poshytips
Latest version. Using inline. Loading only CSS and JS. Error:
Uncaught TypeError: Cannot read property 'defaults' of undefined
jquery-editable-poshytip.js:4642
(function ($) {
"use strict";
//extend methods
$.extend($.fn.editableContainer.Popup.prototype, {
containerName: 'poshytip',
innerCss: 'div.tip-inner',
defaults: $.fn.poshytip.defaults,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
About this issue
- Original URL
- State: open
- Created 13 years ago
- Reactions: 1
- Comments: 15
If you use the CDN, you can declare
<script>$.fn.poshytip={defaults:null}</script>just before calling thejquery-editable-poshytip.jsfile.Turns out I was referencing x-editable incorrectly facepalm Thank you for the assistance, @Aymkdn ! For my MVC brothers and sisters out there, In the shared layout header:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>And in my script (just to be safe)