Comparing version 0.1.0 to 0.2.0
'use strict'; | ||
var $ = window.jQuery ? window.jQuery : require('jquery'), | ||
_ = require('lodash'), | ||
Mousetrap = require('mousetrap'), | ||
@@ -85,8 +86,8 @@ transit = require('jquery.transit'); | ||
* | ||
* @param {string} html | ||
* @param {string|jQuery} content | ||
*/ | ||
show_content: function (html) { | ||
this.$content.html(html); | ||
show_content: function (content) { | ||
this.$content.clear().append(content); | ||
this.$loader.hide(); | ||
this.do_inline_transforms(html); | ||
this.do_inline_transforms(content.html ? content.html() : content); | ||
if (this.isDesktop) | ||
@@ -93,0 +94,0 @@ this.show_content_desktop(); |
{ | ||
"name": "lightbox", | ||
"version": "0.1.0", | ||
"main": "assets/scripts/main.js", | ||
"description": "Easy as <a href=\"/foo\" target=\"lightbox\">pie</a>", | ||
"keywords": [ | ||
"name": "lightbox", | ||
"version": "0.2.0", | ||
"main": "assets/scripts/main.js", | ||
"description": "Easy as <a href=\"/foo\" target=\"lightbox\">pie</a>", | ||
"keywords": [ | ||
"lightbox" | ||
], | ||
"scripts": { | ||
"scripts": { | ||
"pretest": "jshint assets/scripts" | ||
}, | ||
"repository": "https://github.com/jmversteeg/lightbox", | ||
"author": "jmversteeg", | ||
"license": "MIT", | ||
"repository": "https://github.com/jmversteeg/lightbox", | ||
"author": "jmversteeg", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"babelify": "^7.2.0", | ||
"bourbon": "^4.2.6", | ||
"browserify": "^12.0.1", | ||
"babelify": "^7.2.0", | ||
"bourbon": "^4.2.6", | ||
"browserify": "^12.0.1", | ||
"browserify-handlebars": "^1.0.0", | ||
"chai": "^3.4.1", | ||
"chai-as-promised": "^5.1.0", | ||
"coveralls": "^2.11.6", | ||
"gulp": "^3.9.0", | ||
"gulp-autoprefixer": "^3.1.0", | ||
"gulp-concat": "^2.6.0", | ||
"gulp-if": "^2.0.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-sass": "^2.1.1", | ||
"gulp-sourcemaps": "^1.6.0", | ||
"jquery": "^2.1.4", | ||
"jquery.transit": "^0.9.12", | ||
"mocha": "^2.3.4", | ||
"mousetrap": "^1.5.3", | ||
"sinon": "^1.17.2", | ||
"sinon-chai": "^2.8.0", | ||
"vinyl-buffer": "^1.0.0", | ||
"vinyl-source-stream": "^1.1.0", | ||
"yargs": "^3.31.0" | ||
"chai": "^3.4.1", | ||
"chai-as-promised": "^5.1.0", | ||
"coveralls": "^2.11.6", | ||
"gulp": "^3.9.0", | ||
"gulp-autoprefixer": "^3.1.0", | ||
"gulp-concat": "^2.6.0", | ||
"gulp-if": "^2.0.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-sass": "^2.1.1", | ||
"gulp-sourcemaps": "^1.6.0", | ||
"jquery": "^2.1.4", | ||
"jquery.transit": "^0.9.12", | ||
"lodash": "^3.10.1", | ||
"mocha": "^2.3.4", | ||
"mousetrap": "^1.5.3", | ||
"sinon": "^1.17.2", | ||
"sinon-chai": "^2.8.0", | ||
"vinyl-buffer": "^1.0.0", | ||
"vinyl-source-stream": "^1.1.0", | ||
"yargs": "^3.31.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
830325
26
22540
24