Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Commit 23e9126

Browse files
author
Jared Deckard
committed
Check for global jQuery object
1 parent 5cf4719 commit 23e9126

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/assets/javascripts/task_list.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class TaskList
247247
line
248248
result.join("\n")
249249

250-
if this.jQuery
250+
if typeof jQuery != 'undefined'
251251
jQuery.fn.taskList = (method) ->
252252
this.each (index, el) ->
253253
taskList = jQuery(el).data('task-list')

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deckar01-task_list",
3-
"version": "2.0.0-rc.6",
3+
"version": "2.0.0-rc.7",
44
"description": "Markdown TaskList components",
55
"homepage": "https://github.com/deckar01/task_list",
66
"devDependencies": {

lib/task_list/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class TaskList
2-
VERSION = [2, 0, '0-rc', 6].join('.')
2+
VERSION = [2, 0, '0-rc', 7].join('.')
33
end

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deckar01-task_list",
3-
"version": "2.0.0-rc.6",
3+
"version": "2.0.0-rc.7",
44
"description": "Markdown TaskList components",
55
"main": "dist/task_list.js",
66
"directories": {

0 commit comments

Comments
 (0)