ampersand-view
Advanced tools
Comparing version 10.0.1 to 10.0.2
@@ -90,5 +90,2 @@ /*$AMPERSAND_VERSION*/ | ||
// Cached regex to split keys for `delegate`. | ||
var delegateEventSplitter = /^(\S+)\s*(.*)$/; | ||
View.prototype = Object.create(BaseState.prototype); | ||
@@ -231,3 +228,4 @@ | ||
this.registerSubview(view); | ||
container.appendChild(view.render().el); | ||
view.render(); | ||
container.appendChild(view.el); | ||
return view; | ||
@@ -362,11 +360,2 @@ }, | ||
// ## listenToAndRun | ||
// Shortcut for registering a listener for a model | ||
// and also triggering it right away. | ||
listenToAndRun: function (object, events, handler) { | ||
var bound = bind(handler, this); | ||
this.listenTo(object, events, bound); | ||
bound(); | ||
}, | ||
// ## animateRemove | ||
@@ -435,11 +424,2 @@ // Placeholder for if you want to do something special when they're removed. | ||
this.stopListening(); | ||
// TODO: Not sure if this is actually necessary. | ||
// Just trying to de-reference this potentially large | ||
// amount of generated functions to avoid memory leaks. | ||
forEach(parsedBindings, function (properties, modelName) { | ||
forEach(properties, function (value, key) { | ||
delete parsedBindings[modelName][key]; | ||
}); | ||
delete parsedBindings[modelName]; | ||
}); | ||
this.bindingsSet = false; | ||
@@ -446,0 +426,0 @@ }, |
{ | ||
"name": "ampersand-view", | ||
"description": "A smart base view for Backbone apps, to make it easy to bind collections and properties to the DOM.", | ||
"version": "10.0.1", | ||
"version": "10.0.2", | ||
"author": "Henrik Joreteg <henrik@andyet.net>", | ||
@@ -14,11 +14,11 @@ "browser": "./ampersand-view.js", | ||
"dependencies": { | ||
"ampersand-collection-view": "^2.0.1", | ||
"ampersand-dom-bindings": "^3.5.0", | ||
"ampersand-state": "^5.0.1", | ||
"ampersand-collection-view": "^2.0.2", | ||
"ampersand-dom-bindings": "^3.9.1", | ||
"ampersand-state": "^5.0.2", | ||
"ampersand-version": "^1.0.2", | ||
"component-classes": "^1.2.4", | ||
"domify": "^1.3.2", | ||
"events-mixin": "^1.2.0", | ||
"lodash": "^4.11.1", | ||
"matches-selector": "^1.0.0" | ||
"component-classes": "^1.2.6", | ||
"domify": "^1.4.0", | ||
"events-mixin": "^1.3.0", | ||
"lodash": "^4.17.4", | ||
"matches-selector": "^1.2.0" | ||
}, | ||
@@ -28,9 +28,9 @@ "devDependencies": { | ||
"ampersand-rest-collection": "^6.0.0", | ||
"browserify": "^13.0.1", | ||
"jsdom": "^9.0.0", | ||
"precommit-hook": "^2.0.1", | ||
"browserify": "^14.3.0", | ||
"jsdom": "^11.1.0", | ||
"precommit-hook": "^3.0.0", | ||
"run-browser": "^2.0.2", | ||
"tap-spec": "^2.2.2", | ||
"tape": "^3.5.0", | ||
"tape-run": "^1.0.0" | ||
"tap-spec": "^4.1.1", | ||
"tape": "^4.6.0", | ||
"tape-run": "^3.0.0" | ||
}, | ||
@@ -57,3 +57,4 @@ "homepage": "https://github.com/ampersandjs/ampersand-view", | ||
"publish-minor": "npm run preversion && npm version minor && git push origin master --tags && npm publish", | ||
"publish-major": "npm run preversion && npm version major && git push origin master --tags && npm publish" | ||
"publish-major": "npm run preversion && npm version major && git push origin master --tags && npm publish", | ||
"lint": "jshint ." | ||
}, | ||
@@ -75,3 +76,8 @@ "testling": { | ||
] | ||
} | ||
}, | ||
"pre-commit": [ | ||
"lint", | ||
"validate", | ||
"test" | ||
] | ||
} |
@@ -5,2 +5,4 @@ # ampersand-view | ||
**:point_right: Seeking volunteer for new lead maintainer**. &-view is in great shape and very stable, however, I am currently doing the barebones to keep it afloat. Please get in contact if you're interested in taking the reigns! Thanks -[@cdaringe](http://www.twitter.com/cdaringe) | ||
A set of common helpers and conventions for using as a base view for ampersand.js apps. | ||
@@ -401,3 +403,3 @@ | ||
notes: | ||
- It will also match agains the root element. | ||
- It will also match against the root element. | ||
- It will return the root element if you pass `''` as the selector. | ||
@@ -404,0 +406,0 @@ - If no match is found it returns `undefined` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
648
83722
1554
1
Updatedampersand-state@^5.0.2
Updatedcomponent-classes@^1.2.6
Updateddomify@^1.4.0
Updatedevents-mixin@^1.3.0
Updatedlodash@^4.17.4
Updatedmatches-selector@^1.2.0