Skip to content

Commit

Permalink
Update up to changes in 'd'
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Jun 29, 2015
1 parent 33472c4 commit de9683b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions base.js
@@ -1,6 +1,7 @@
'use strict';

var assign = require('es5-ext/object/assign')
var getDomjs = require('es5-ext/function/pluck')('_domjs')
, assign = require('es5-ext/object/assign')
, forEach = require('es5-ext/object/for-each')
, d = require('d')
, autoBind = require('d/auto-bind')
Expand Down Expand Up @@ -116,5 +117,5 @@ Object.defineProperties(Base.prototype, assign({
else if (dom != null) this._current.appendChild(dom);
return dom;
})
}, '_domjs')))
}, { resolveContext: getDomjs })))
}));
5 changes: 3 additions & 2 deletions index.js
@@ -1,6 +1,7 @@
'use strict';

var assign = require('es5-ext/object/assign')
var getDomjs = require('es5-ext/function/pluck')('_domjs')
, assign = require('es5-ext/object/assign')
, mixin = require('es5-ext/object/mixin')
, d = require('d')
, autoBind = require('d/auto-bind')
Expand Down Expand Up @@ -43,7 +44,7 @@ module.exports = HTML5 = function (document) {

HTML5.prototype = Object.create(Base.prototype, {
constructor: d(HTML5),
ns: d(Object.create(Base.prototype.ns, autoBind(elements, '_domjs')))
ns: d(Object.create(Base.prototype.ns, autoBind(elements, { resolveContext: getDomjs })))
});

assign(require('./ext'), {
Expand Down

0 comments on commit de9683b

Please sign in to comment.