Hello,
I just started with JMVC and after some coding my web-console of Firefox throws this error. But I dont really get where it comes from. When I click on the error I get referred to of jquery.js:
I just started with JMVC and after some coding my web-console of Firefox throws this error. But I dont really get where it comes from. When I click on the error I get referred to of jquery.js:
// A method for determining if a DOM node can handle the data expando acceptData: function( elem ) { if ( elem.nodeName ) { var match = jQuery.noData[ elem.nodeName.toLowerCase() ]; if ( match ) { return !(match === true || elem.getAttribute("classid") !== match); } } return true; }
- click: function() {
- var dialog = new Widgets.Dialog("//prizeplay/users/login/views/login.ejs", { title: "Login" });
- console.log(dialog);
- return false;
- }
- steal(
- 'jquery/controller',
- 'jquery/view/ejs'
- )
- .then('./views/init.ejs', function($) {
- /**
- * @class Widgets.Dialog
- */
- $.Controller('Widgets.Dialog',
- /** @Static */
- {
- defaults: {}
- },
- /** @Prototype */
- {
- settings: {
- title: "undefined",
- modal: true,
- appendTo: "body"
- },
- init: function(tmpl, settings) {
- this.setUp(settings);
- this.show(tmpl);
- },
- show: function(tmpl) {
- $('<div></div>').html(tmpl, this.settings);
- },
- setUp: function(settings) {
- for (var attr in settings) {
- this.settings[attr] = settings[attr];
- }
- }
- }
- );
- });
Can you help me?